package com.redare.dev.smart.generator.sdk.pojo;

/**
 * Created by yangqy on 2018/12/21.
 */
public class CodeTemplate {

    public CodeTemplate() {
    }

    public CodeTemplate(String id, String display, String extension, String filename, String template, String subPath, Boolean isResources) {
        this.id = id;
        this.display = display;
        this.extension = extension;
        this.filename = filename;
        this.template = template;
        this.subPath = subPath;
        this.isResources = isResources;
    }

    /**
     * 模版ID，取 UUID 值
     */
    private String id;

    /**
     * 模版名称
     */
    private String display;

    /**
     * 扩展名
     */
    private String extension;

    /**
     * 文件名称
     */
    private String filename;

    /**
     * 模版内容
     */
    private String template;

    /**
     * 子目录
     */
    private String subPath;

    /**
     * 是否是静态资源
     */
    private Boolean isResources;

    private String group;

    public String getId() {
        return id;
    }

    public CodeTemplate setId(String id) {
        this.id = id;
        return this;
    }

    public String getDisplay() {
        return display;
    }

    public CodeTemplate setDisplay(String display) {
        this.display = display;
        return this;
    }

    public String getExtension() {
        return extension;
    }

    public CodeTemplate setExtension(String extension) {
        this.extension = extension;
        return this;
    }

    public String getFilename() {
        return filename;
    }

    public CodeTemplate setFilename(String filename) {
        this.filename = filename;
        return this;
    }

    public String getTemplate() {
        return template;
    }

    public CodeTemplate setTemplate(String template) {
        this.template = template;
        return this;
    }

    public String getSubPath() {
        return subPath;
    }

    public CodeTemplate setSubPath(String subPath) {
        this.subPath = subPath;
        return this;
    }

    public Boolean getResources() {
        return isResources;
    }

    public CodeTemplate setResources(Boolean resources) {
        isResources = resources;
        return this;
    }

    public String getGroup() {
        return group;
    }

    public CodeTemplate setGroup(String group) {
        this.group = group;
        return this;
    }
}
